home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Sound / LAME / WarpOS / src / mpglib / mpglib.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-06-18  |  1.3 KB  |  62 lines

  1. #include "lame-analysis.h"
  2.  
  3. #ifndef NOANALYSIS
  4. extern plotting_data *mpg123_pinfo;
  5. #endif
  6.  
  7. struct buf {
  8.         unsigned char *pnt;
  9.     long size;
  10.     long pos;
  11.         struct buf *next;
  12.         struct buf *prev;
  13. };
  14.  
  15. struct framebuf {
  16.     struct buf *buf;
  17.     long pos;
  18.     struct frame *next;
  19.     struct frame *prev;
  20. };
  21.  
  22. typedef struct mpstr_tag {
  23.     struct buf *head,*tail;
  24.         int vbr_header;               /* 1 if valid Xing vbr header detected */
  25.         int num_frames;               /* set if vbr header present */
  26.         int header_parsed;
  27.         int side_parsed;  
  28.         int data_parsed;  
  29.         int free_format;             /* 1 = free format frame */
  30.         int old_free_format;        /* 1 = last frame was free format */
  31.     int bsize;
  32.     int framesize;
  33.     int ssize;
  34.     int dsize;
  35.         int fsizeold;
  36.         int fsizeold_nopadding;
  37.     struct frame fr;
  38.         unsigned char bsspace[2][MAXFRAMESIZE+512]; /* MAXFRAMESIZE */
  39.     real hybrid_block[2][2][SBLIMIT*SSLIMIT];
  40.     int hybrid_blc[2];
  41.     unsigned long header;
  42.     int bsnum;
  43.     real synth_buffs[2][2][0x110];
  44.         int  synth_bo;
  45.         int  look_for_xing;
  46.     
  47. } MPSTR, *PMPSTR;
  48.  
  49.  
  50. #if ( defined(_MSC_VER) || defined(__BORLANDC__) )
  51.     typedef int BOOL; /* windef.h contains the same definition */
  52. #else
  53.     #define BOOL int
  54. #endif
  55.  
  56. #define MP3_ERR -1
  57. #define MP3_OK  0
  58. #define MP3_NEED_MORE 1
  59.  
  60.  
  61.  
  62.